import {observable,action} from 'mobx';

class demoStore {
    @observable num = 0;

    @action addNum = () =>{
        if(this.num<100){
            this.num+=10;
        }
    };

}

export default new demoStore();
